if not defined ProgramFiles(x86) CALL "%ProgramFiles%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
if defined ProgramFiles(x86) CALL "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"

Copy "SSIS Batch Geocoder.dll" "%ProgramFiles%\Microsoft SQL Server\100\DTS\PipelineComponents\"
if defined ProgramFiles(x86) Copy "SSIS Batch Geocoder.dll" "%ProgramFiles(x86)%\Microsoft SQL Server\100\DTS\PipelineComponents\"

gacutil /u "SSIS Batch Geocoder"
gacutil /i "%ProgramFiles%\Microsoft SQL Server\100\DTS\PipelineComponents\SSIS Batch Geocoder.dll"

@PAUSE